package com.dot.dominion.domain.players;

import com.dot.dominion.domain.Player;

/**
 * Singleton class representing the first player.
 * 
 * @author Shahin
 */
public final class Player1 implements Player {

  private static final long serialVersionUID = -4194382362225946423L;
  private static final Player _instance = new Player1();
  
  private final int _id = 0;
  
  private String _name = "Player 1";
  
  /**
   * Private constructor to enforce the Singleton pattern.
   */
  private Player1 () {}
  
  /**
   * @return The single instance representing Player 1.
   */
  public static Player getInstance () {
    return _instance;
  }
  

  public void changeName (String name) {
    _name = name;
  }
  

  public int getId() {
    return _id;
  }
  
 
  public String getName () {
    return _name;
  }

}
